/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Game;

/**
 * Game Entity for Gameplay.
 * @author Rodge Uy
 */
public class Travel {
    private int start; //waypoint user started from
    private int end; //waypoint user ended at
    private double startLat; // starting latitude
    private double startLong; // starting longitude
    private double endLat; //end latitude
    private double endLong; //end longitude
    private String transport; //type of transportation taken

    //default constructor
    public Travel(){
        this(-1,-1,-1,-1,-1,-1,null); //sets invalid values
    }

    //constructor with travel attributes as parameters
    public Travel(int start,int end,double startLat,double startLong,double endLat,double endLong,String transport){
        this.setStart(start);
        this.setEnd(end);
        this.setStartLat(startLat);
        this.setStartLong(startLong);
        this.setEndLat(endLat);
        this.setEndLong(endLong);
        this.setTransport(transport);
    }

    //sets starting waypoint
    public void setStart(int start){
        this.start=start;
    }

    //returns starting waypoint
    public int getStart(){
        return this.start;
    }

    //sets end waypoint
    public void setEnd(int end){
        this.end=end;
    }

    //returns end waypoint
    public int getEnd(){
        return this.end;
    }
    
    //sets the Latitude of the start waypoint
    public void setStartLat(double startLat){
        this.startLat=startLat;
    }

    //returns the Latitude of the start waypoint
    public double getStartLat(){
        return this.startLat;
    }

    //sets the Longitude of the start waypoint
    public void setStartLong(double startLong){
        this.startLong=startLong;
    }

    //returns the Longitude of the start waypoint
    public double getStartLong(){
        return this.startLong;
    }

    //sets the Latitude of the end waypoint
    public void setEndLat(double endLat){
        this.endLat=endLat;
    }

    //returns the Latitude of the end waypoint
    public double getEndLat(){
        return this.endLat;
    }

    //sets the Longitude of the end waypoint
    public void setEndLong(double endLong){
        this.endLong=endLong;
    }

    //returns the Longitude of the end waypoint
    public double getEndLong(){
        return this.endLong;
    }

    //sets the Transportation Type
    public void setTransport(String transport){
        this.transport=transport;
    }


    //returns the Transportation Type
    public String getTransport(){
        return this.transport;
    }
}